package com.wms.entity.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum ResourceTypeEnum {
    CATALOG(0, "目录"),
    MENU(1, "菜单"),
    PAGE(2, "页面"),
    BUTTON(3, "按钮");

    @EnumValue
    private final int value;
    private String desc;

    ResourceTypeEnum(int value, String desc){
        this.desc = desc;
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
